import { Outlet, Navigate } from "umi"
import { isLogin } from "@/utils"
export default function auth() {
  return (
    <>
      {
        isLogin()
        ?
        <Outlet/>
        :
        <Navigate to="/login" replace/>
      }
    </>
  )
}
